package clientrequest;

import java.util.Vector;

public class RequestLogin extends RequestToServer {
    private String version, username, password;

    @Override
    public void send(short requestCode, Vector<Object> args) {
        version = (String) args.get(0);
        username = (String) args.get(1);
        password =  (String) args.get(2);
        short sizeofrequest =(short)(4+2*(version.getBytes().length+username.getBytes().length+password.getBytes().length));
        
        super.writeShort(sizeofrequest);
        super.writeShort(requestCode);
        super.writeString(version);
        super.writeString(username);
        super.writeString(password);
    }


    

}
